#!usr/bin/env python
#-*- coding:utf-8 _*-
"""
@author:田野
@time: 2018/12/12
"""
from django.conf.urls import url, include

from booktest import views
# from .views import  BookDetailView
from booktest.views import BookDetailView

urlpatterns = [
    # url(r'^',views.serialize),
    # url(r'^',views.BookInfoViewSet.as_view())
    # url(r'^latest/$', views.BookInfoViewSet.as_view({"get": "latest"})),
    # url(r'(?P<pk>.*)/$',views.BookDetailView.as_view({'get':'retrieve','put':'update','delete':'destory'})),
    # url(r'^',views.BookDetailView.as_view({'get':'list','post':'create'})),

    url(r'(?P<pk>.*)/$',BookDetailView.as_view())
    # url(r'^',views.BookDetailView.as_)
    # url(r'^',views.BookDetailView.as_view())
    # url(r'^',views.BookInfoViewSet.as_view({"get":"list","post":"create"})),
    # url(r'^',views.search_one)
]